package com.net.oil.app;
/*
 * Created by lch on 2018/2/21 0021.
 */

public class Constant {

    //加载更多
    public static final int PULL_LOAD_MORE = 10;    //上拉加载更多
    public static final int LOADING_MORE = 11;      //正在加载中
    public static final int LOADING_NONE = 12;      //没有更多
    public static final int LOADING_FAIL = 13;      //加载失败


    public static final String NEWS_TYPE_ID = "news_type_id";       //新闻类型id

    public static final String INTENT_NEWS_KEY = "intent_news_key";     //新闻跳转到新闻详情传入的key
    public static final String INTENT_ACTION_KEY = "intent_action_key";     //轮播图活动跳转到活动详情的key

    public static final String TECHNOLOGY_TYPE_ID = "technology_type_id";   //技术支持类型id key

    public static final String INTENT_TECHNOLOGY_KEY = "intent_technology_key";    //技术支持跳转到新闻详情传入的key


    public static final int LOGIN_REQUEST_CODE =1001;       //登录intent，requestCode
    public static final int SET_REQUEST_CODE = 1002;        //设置intent requestCode

    //登录界面，登录成功，setResult, 返回的数据的key
    public static final String LOGIN_RESULT_INTENT_KEY = "login_result_intent_key";

    //店铺列表跳转到店铺详情，传入店铺id的key
    public static final String INTENT_SHOP_ID_KEY = "intent_shop_id_key";
    public static final String  INTENT_MY_CAR_ID = "intent_my_car_id";

    public static final String BANNER_TYPE = "app";     //获取banner接口参数值，默认传app，与后台协定（参数意义参考后台定义）
    public static final int PRODUCT_ID = 0;             //获取产品分类列表参数值，默认0，与后台协定（参数意义参考后台定义）

    public static final String INTENT_PRODUCT_CLASS_ID = "intent_product_class_id";     //产品分类id，产品分类跳转到产品列表key值

    public static final String INTENT_CAR_BRAND_ID = "intent_car_brand_id";    //车辆品牌id

    public static final String INTENT_PRODUCT_LIST_KEY = "intent_product_list_key";     //产品分类跳转产品列表intent key

    /**
     * 图片压缩保存目录
     */
    public static final String PIC_CACHE_FILE = "/sdcard/515app/img/img";

    /**
     * 经纬度 key
     */
    public static final String INTENT_LNG = "intent_lng";
    public static final String INTENT_LAT = "intent_lat";

    public static final String INTENT_PRODUCT_DETAIL_ID = "intent_product_detail_id";       //跳转到产品详情的产品id

    public static final String INTENT_PUSH_JSON =  "intent_push_json";                      //推送内容

    public static final String INTENT_TO_WEBVIEW_URL_KEY = "intent_to_web_view_url_key";    //跳转到webView的url key


    public static final int EXPIRE_STATUS = 0;      //未过期

    public static final int RESERVE_STATUS_SUCCESS = 1;     //已预约
    public static final int RESERVE_STATUS_CANCEL = 0;      //预约取消
    public static final int RESERVE_STATUS_FINSH = 2;       //已完成

    public static final String INTENT_RESERVE_ID_KEY = "intent_reserve_id_key";     //预约列表跳转到预约详情传入的id的key

    public static final String COUPON_SELECT_POSITION = "coupon_select_position";   //优惠券列表选中的位置

    public static final String INTENT_SELECT_CAR_ID = "intent_select_car_id";       //预约选中的爱车的id的key，从爱车列表返回
    public static final String INTENT_SELECT_CAR_INFO = "intent_select_car_info";       //预约选中的爱车的信息的key，从爱车列表返回

    //Activity跳转requestCode
    public static final int DEFAULT_REQUEST = 1;        //默认跳转请求码

    public static final String INTENT_SHOP_INTRODUCE_KEY = "intent_shop_introduce_key";     //门店介绍内容key

    public static final String INTENT_COUPON_ID_KEY = "intent_coupon_id_key";               //优惠券id 的key

    public static final String INTENT_CAR_ID = "intent_car_id";                         //爱车id
    public static final String INTENT_CAR_TYPE = "intent_car_type";             //爱车信息

    public static final  String INTENT_RECORD_ID = "intent_record_id";              //保养记录id

    public static final String MY_RECEIVE_GOODS_POSITION = "my_receive_goods_position";     //我领取的商品的状态key

    public static final String INTENT_MY_RECEIVE_GOODS_ID_KEY = "intent_my_receive_goods_id_key";

    public static final String INTENT_ACTION_ID_KEY ="intent_action_id_key";        //活动id key

    public static final String INTENT_IS_SHARE = "intent_is_ share";            //是否分享key

    public static String SHARE_URL = "ShareUrl";
    public static String SHARE_TITLE = "ShareTitle";

    /* ******************************************    eventBus消息 ********************** */

    public static final String LOGIN_SUCCESS_MESSAGE = "login_success";     //登陆成功消息
    public static final int LOGIN_SUCCESS_CODE = 0;                        //登陆成功code

    public static final String LOGOUT_MESSAGE = "logout_message";           //推出登陆消息
    public static final int LOGOUT_CODE = 1;                                 //退出登录code

    public static final String UPLOAD_USER_HEAD_SUCCESS_MESSAGE = "upload_user_head_success";   //更新头像成功消息
    public static final int UPLOAD_USER_HEAD_SUCCESS_CODE = 2;                                  //更新头像成功code

    public static final String HAS_COUPON_MESSAGE = "has_coupon";
    public static final int HAS_COUPON_CODE = 3;
}
